package pl.com.qapps.datastore.berkeley;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import pl.com.qapps.datastore.DatastoreHandler;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.PreparedQuery;
import com.google.appengine.api.datastore.Query;
import com.google.appengine.api.datastore.Transaction;
import com.google.appengine.api.datastore.TransactionOptions;
import com.google.storage.onestore.v3.OnestoreEntity.EntityProto;
import com.google.storage.onestore.v3.OnestoreEntity.Reference;

public class MemoryDatastoreHandler implements DatastoreHandler {
	
	private final Map<Key, Entity> store = new HashMap<>();
	private final Map<String, > txns = new HashMap<>();

	@Override
	public void makePut(Transaction txn, Iterable<Entity> entities) {
		return store.putAll(txns.get(txn.getId()))
	}

	@Override
	public Map<Reference, EntityProto> makeGet(Transaction txn,
			Iterable<Reference> keys) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void makeDelete(Transaction txn, Iterable<Reference> keys) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Transaction newTransaction(TransactionOptions options) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PreparedQuery newAncestorQuery(Transaction txn, Query query) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PreparedQuery newQuery(Query query) {
		// TODO Auto-generated method stub
		return null;
	}

}
